Welcome Guest | Sign in | Register
Windows Controls - DotNet Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com

Home > Technical Interviews > Computer Science & Engineering > DotNet Programming > Windows Controls Questions and Answers

21. Which method provides the functionality to display a dialog box at runtime?

The ShowDialog() method is used to display the dialog box at run time.

22. What does the PerformStep() method do?

The PerformStep() method increases the value of Progress bar according to the amount set by the Stepproperty.

23. Write a method to get only the name of a file from the complete path string in C#.

Use a FileInfo class and instantiate its object with the full path as the constructor argument and then simply call the FileInfo.Name file and you will get just the name of the file.

24. What does the OpenFile() method of the OpenFileDialog control do?

The OpenFile() method opens the file selected by the user with read-only permission. The file is specified by the FileName property.

25. How do you retrieve the customized properties of a .NET application from the XML .config file?

Initialize an instance of the AppSettingsReader class. Call the GetValue() method of theAppSettingsReader class, passing in the name of the property and the type expected. Finally, assign the result to the appropriate variable.




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.